<?php
/**
 * JoiGallery - image gallery component for Joostina
 *
 * Менеджер настроек
 *
 * @version 1.0 alpha 12
 * @package JoiGallery
 * @subpackage	AdminView
 * @filename config_list.php
 * @author JoostinaTeam
 * @copyright (C) 2008-2009 Joostina Team
 * @license see license.txt
 *
 **/
 
defined('_VALID_MOS') or die();

?>

<table class="adminheading">
  <tr>
    <th class="config">
     <?php echo _C_JOIGALLERY_COMPONENT;
           echo _C_JOIRATING_ADMIN_LIST_CONFIG;
      ?>
    </th>
  </tr>
</table>

<form action="index2.php" method="post" name="adminForm" id="adminForm">
  
  <table class="adminlist" width="100%">
    <tr>
      <th width="10" style="text-align: center">#</th>
      <th width="20"><input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count( $configs );?>);" /></th>
      <th class="title"><?php echo _C_JOIRATING_ADMIN_CONFIG;?></th>
    </tr>
  <?php
  $i = 0;
  foreach($configs as $config){
          $link = 'index2.php?option='.$option.'&act=configuration&task=config&group='.$config;
  ?>
    <tr>
      <td align="right"><?php echo $pageNav->rowNumber( $i ); ?></td>
      <td align="center"><?php echo mosHTML::idBox($i, $config); ?></td>
      <td><a href="<?php echo $link;?>"><?php echo $config; ?></a></td>
    </tr>
  <?php 
  $i++; }//foreach
  ?>
  </table>

  <input type="hidden" name="option" value="<?php echo $option; ?>" />
  <input type="hidden" name="act" value="configuration" />
  <input type="hidden" name="task" value="" />
  <input type="hidden" name="<?php echo josSpoofValue(); ?>" value="1" />
  <input type="hidden" name="boxchecked" value="0" />
  
</form>